const router = require('koa-router')()
const blogController = require('../controller/blogs')

router.prefix('/api/blogs')

router.get('/search', blogController.search)
router.post('/', blogController.add)
router.put('/:id', blogController.update)

// 增删改查
// add 查

module.exports = router